import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class test {
    public static void main(String[] args) {
        String str = "98";
        int i1 = Integer.valueOf( str);
        System.out.println(i1+2);

        String str1 = "98.8";
        double i2 = Double.valueOf( str1);
        System.out.println(i2+2);



        ArrayList< String> names = new ArrayList<>();
        names.add("张三");
        names.add("张四");
        names.add("张五");
        System.out.println(names);
        Iterator< String> iterator = names.iterator();
        while (iterator.hasNext()){
            String name = iterator.next();
            System.out.println(name);
        }
        int i = names.hashCode();
        System.out.println(i);

        List< String> list = new ArrayList<>();
        list.add("张无忌");
        list.add("周芷若");
        list.add("赵敏");
        list.add("张强");
        list.add("张三丰");
        list.add("张翠山");

        list.stream().filter(s->s.startsWith("张")&& s.length()==3).forEach(System.out::println);


    }
}
